package com.wang.jmonkey.modules.system.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.wang.jmonkey.common.model.entity.BaseEntity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * 字典表(SystemDict)表实体类
 *
 * @author HeJiawang
 * @since 2021-05-21 21:44:49
 */
@TableName("system_dict")
@Data
@Accessors(chain = true)
public class SystemDictEntity extends BaseEntity<SystemDictEntity> {

    private Long id;

    /**
     * 上级字典ID, null为顶级字典定义
     */
    private Long parentId;

    /**
     * 字典标签
     */
    @NotBlank(message = "字典标签不能为空")
    private String label;

    /**
     * 字典键值
     */
    @NotBlank(message = "字典键值不能为空")
    private String value;

    /**
     * 排序值
     */
    private Integer sort;

    /**
     * 备注
     */
    private String remark;

}
